@use './var.scss';
@use './FormCreate/index.scss';
@use './theme.scss';
@use 'element-plus/theme-chalk/dark/css-vars.css';
@use './themeCompents/dark.scss';
@use './themeCompents/normal.scss';
.reset-margin [class*='el-icon'] + span {
  margin-left: 2px !important;
}

// 解决抽屉弹出时，body宽度变化的问题
.el-popup-parent--hidden {
  width: 100% !important;
}

// 解决表格内容超过表格总宽度后，横向滚动条前端顶不到表格边缘的问题
.el-scrollbar__bar {
  display: flex;
  justify-content: flex-start;
}

/* nprogress 适配 element-plus 的主题色 */
#nprogress {
  & .bar {
    background-color: var(--el-color-primary) !important;
  }

  & .peg {
    box-shadow:
      0 0 10px var(--el-color-primary),
      0 0 5px var(--el-color-primary) !important;
  }

  & .spinner-icon {
    border-top-color: var(--el-color-primary);
    border-left-color: var(--el-color-primary);
  }
}
.el-drawer__header {
  padding: 10px !important;
  border-bottom: 1px solid #ebeef5;
  margin-bottom: 0px !important;
}
.el-drawer__body {
  padding: 16px !important;
}

.des-item-side {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  font-size: 14px;
  border: 1px solid #ebeef5;
  .hlabel {
    background: #f5f7fa;
    padding: 10px;
  }
  .hrow {
    border-bottom: 1px solid #ebeef5;
  }

  .b-bottom0 {
    border-bottom: 0;
  }
  .hvalue {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 10px;
  }
}

.el-tabs__nav-scroll {
  margin: 0 !important;
}

.h-flow-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jv-container .jv-code {
  padding: 0;
}
/* Global scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #a0a0a0;
}

::-webkit-scrollbar-track {
  background-color: #f0f0f0;
  border-radius: 4px;
}
.el-scrollbar__view {
  height: 100%;
}
.el-button:not(.el-button--primary):not(.is-link) {
  border-radius: 0.25rem;
  color: var(--theme-color);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0 0.7rem;
  transition: 0.3s;
  height: 2rem;
  line-height: 2rem;
  background: var(--btn1-bg);
  border-radius: 0.25rem;
  border: 0;
  &:hover {
    background: var(--btn1-bg);
    color: var(--theme-color);
  }
}
.el-button.is-disabled,
.el-button.is-disabled:hover {
  border-radius: 0.25rem;
  color: var(--theme-color) !important;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0 0.7rem;
  transition: 0.3s;
  height: 2rem;
  line-height: 2rem;
  background: var(--btn1-bg) !important;
  border-radius: 0.25rem;
  border: 0;
  opacity: 0.6;
  cursor: not-allowed;
}

.el-card__body {
  padding: 1rem !important;
}
.el-transfer-panel {
  width: calc((100% - 112px) / 2);
}
.el-transfer .el-transfer__button {
  width: 2.5rem;
  padding: 0;
}
.el-transfer__buttons {
  padding: 0 0.5rem;
}
// .el-button--default {
//   min-width: 3.125rem;
// }
